package com.lzh;

import com.lzh.service.UserService;
import com.lzh.spring.LzhApplicationContext;

public class Test {
    public static void main(String[] args) {
        LzhApplicationContext lzhApplicationContext = new LzhApplicationContext(AppConfig.class);
        //UserService userService = (UserService)lzhApplicationContext.getBean("userService");

//        System.out.println(lzhApplicationContext.getBean("userService"));
//        System.out.println(lzhApplicationContext.getBean("userService"));
//        System.out.println(lzhApplicationContext.getBean("userService"));
//        System.out.println(lzhApplicationContext.getBean("userService"));

        //System.out.println(lzhApplicationContext.getBean("orderService"));
        UserService userService = (UserService)lzhApplicationContext.getBean("userService");
        userService.test();
    }
}
